Skip to content

Update @github/copilot to 1.0.81-10 - #2401

Merged
roji merged 18 commits into
mainfrom
update-copilot-1.0.81-10
Aug 26, 2026
Merged

Update @github/copilot to 1.0.81-10#2401
roji merged 18 commits into
mainfrom
update-copilot-1.0.81-10

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated update of @github/copilot to version 1.0.81-10.

Changes

  • Updated @github/copilot in nodejs/package.json and test/harness/package.json
  • Re-ran all code generators (scripts/codegen)
  • Formatted generated output
  • Updated Java codegen dependency, POM property, and regenerated Java types

Java Handwritten Code Adaptation Plan

If java-sdk-tests CI fails on this PR, follow these steps:

  1. Identify failures: Run mvn clean, mvn verify from java/ locally or check the java-sdk-tests workflow run logs.
  2. Categorize errors:
    • Constructor signature changes (new fields added to generated records)
    • Enum value additions/renames in generated types
    • New event types requiring handler registration
    • Removed or renamed generated types
  3. Fix handwritten source (java/sdk/src/main/java/com/github/copilot/sdk/):
    • Update call sites passing positional constructor args to include new fields (typically null for optional new fields).
    • Update switch/if-else over enum values to handle new cases.
    • Register handlers for new event types in CopilotSession.java if applicable.
  4. Fix handwritten tests (java/sdk/src/test/java/com/github/copilot/sdk/):
    • Same constructor/enum fixes as above.
    • Add new test methods for new functionality if the change adds user-facing API surface.
  5. Validate: cd java && mvn clean test-compile jar:jar && mvn verify -Dskip.test.harness=true
  6. Format: cd java && mvn spotless:apply
  7. Push fixes to this PR branch.

To automate this, trigger the java-adapt-handwritten-code-to-accept-upgrade-changes agentic workflow instead.

Next steps

When ready, click Ready for review to trigger CI checks.

Created by the Update @github/copilot Dependency workflow.

- Updated nodejs and test harness dependencies
- Re-ran code generators
- Formatted generated code
@github-actions

This comment has been minimized.

ellismg and others added 3 commits August 25, 2026 14:45
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: e2ffce58-35b6-4bb8-a5f3-0bb4e5b5ada4
Update handwritten constructor calls for the new sandbox, skill, and reasoning fields.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot mentioned this pull request Aug 25, 2026
Use the regenerated MCP OAuth discriminator, settable auth inputs, and public Rust option construction pattern.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: e98a14a6-7ad4-4cb6-b808-e56547701c19
@github-actions

This comment has been minimized.

Use an open string property with well-known constants and cover unknown future modes on the wire.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: e98a14a6-7ad4-4cb6-b808-e56547701c19
@github-actions

This comment has been minimized.

Expose well-known mode constants while accepting and forwarding future fail-closed runtime values.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: e98a14a6-7ad4-6587-b885-95ed912cb84b
@github-actions

This comment has been minimized.

Broaden the Node API to forward future fail-closed values and add Rust support for the allow-auto-only policy.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: e98a14a6-7ad4-4cb6-b808-e56547701c19
@github-actions

This comment has been minimized.

Replace the closed enum with an open string field and retain well-known policies as public constants.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: e98a14a6-7ad4-4cb6-b808-e56547701c19
Match the repository's reorder_impl_items formatting configuration used by Linux CI.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: e98a14a6-7ad4-4cb6-b808-e56547701c19
@github-actions

This comment has been minimized.

@ellismg

ellismg commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Handoff summary

This update required more than regenerating types for @github/copilot 1.0.81-10. The generated schema changes exposed several handwritten compatibility and cross-SDK parity issues.

Manual changes

  • Rust
    • Updated the connect handshake for the new clientInfo field.
    • Adapted auth and session-option tests to regenerated types.
    • Changed managed bypass policy from a closed enum to an open String, with constants for disable and allow-auto-only, so future fail-closed modes pass through unchanged.
  • Go
    • Updated managed-settings types and tests for open-string bypass policies.
  • Java
    • Updated handwritten generated-record constructor calls for new sandbox, skill, and reasoning fields.
    • Added open-string managed bypass constants and serialization coverage.
  • .NET
    • Adapted credential-setting code to SettableAuthInfo.
    • Changed managed bypass policy from an enum to an open string with known constants and future-value coverage.
  • Python
    • Migrated MCP OAuth handling to the new generated discriminator.
    • Changed managed bypass policy from a literal to an open string with constants and future-value coverage.
  • Node.js
    • Changed managed bypass policy from the "disable" literal to an open string.
    • Exported known constants and added unknown-value forwarding coverage.

CI investigation

We fixed deterministic schema and compile failures across Python, Rust, Java, Go, and .NET. Several other failures were transient infrastructure or timeout issues, including a Python macOS in-process E2E timeout. The final Rust failure was caused by CI's pinned nightly rustfmt configuration reordering associated constants; the committed ordering now matches that exact check.

Current state

  • All 74 reported checks pass.
  • The cross-SDK consistency findings have been addressed.
  • The PR is ready for final review and merge unless new feedback appears.

@ellismg
ellismg marked this pull request as ready for review August 26, 2026 02:49
@ellismg
ellismg requested a review from a team as a code owner August 26, 2026 02:49
Copilot AI balanced review requested due to automatic review settings August 26, 2026 02:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates @github/copilot to 1.0.81-10 and synchronizes generated protocol surfaces across all SDKs.

Changes:

  • Updates dependency manifests and lockfiles.
  • Regenerates RPC and session-event models with new authentication, telemetry, model, plugin, skill, and sandbox fields.
  • Adapts managed bypass-permission APIs and affected tests.
Show a summary per file
File Description
test/harness/package.json Updates harness dependency.
test/harness/package-lock.json Locks updated runtime packages.
rust/tests/session_test.rs Tests open bypass-policy strings.
rust/tests/e2e/rpc_session_state.rs Adapts generated RPC types.
rust/src/types.rs Opens managed policy values.
rust/src/lib.rs Initializes new connect field.
rust/src/generated/session_events.rs Regenerates event models.
rust/src/generated/rpc.rs Updates generated RPC documentation.
rust/src/generated/api_types.rs Regenerates RPC data types.
python/test_client.py Tests managed-policy serialization.
python/e2e/test_mcp_oauth_e2e.py Adapts OAuth discriminator.
python/copilot/session.py Uses regenerated OAuth kind.
python/copilot/generated/session_events.py Regenerates event models.
python/copilot/generated/rpc.py Regenerates RPC models.
python/copilot/client.py Opens managed policy values.
python/copilot/__init__.py Exports policy constants.
nodejs/test/client.test.ts Tests known and future policies.
nodejs/src/types.ts Opens managed policy values.
nodejs/src/index.ts Exports policy constants.
nodejs/src/generated/session-events.ts Regenerates event types.
nodejs/src/generated/rpc.ts Regenerates RPC types and handlers.
nodejs/samples/package-lock.json Updates sample dependency lock.
nodejs/package.json Updates runtime dependency.
nodejs/package-lock.json Locks updated runtime binaries.
java/sdk/src/test/java/com/github/copilot/SessionEventHandlingTest.java Adapts generated constructor.
java/sdk/src/test/java/com/github/copilot/ManagedSettingsTest.java Tests open policy strings.
java/sdk/src/test/java/com/github/copilot/generated/rpc/GeneratedRpcRecordsCoverageTest.java Adapts model constructor.
java/sdk/src/main/java/com/github/copilot/rpc/ManagedSettingsPermissions.java Stores policy as a string.
java/sdk/src/main/java/com/github/copilot/rpc/DisableBypassPermissionsModes.java Adds known policy constants.
java/sdk/src/main/java/com/github/copilot/CopilotClient.java Adapts session-update constructor.
java/sdk/src/generated/java/com/github/copilot/generated/SubagentFailedEvent.java Adds model-selection metadata.
java/sdk/src/generated/java/com/github/copilot/generated/SubagentCompletedEvent.java Adds model-selection metadata.
java/sdk/src/generated/java/com/github/copilot/generated/SessionManagedSettingsResolvedEvent.java Adds sandbox provenance.
java/sdk/src/generated/java/com/github/copilot/generated/SessionEvent.java Registers the new event.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/TokenProviderAuthInfo.java Adds callback-backed auth.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/TokenAuthInfo.java Adds registration metadata.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/SessionQueuePendingItemsResult.java Adds steering state.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsPathsAddParams.java Documents configuration discovery.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/SessionOptionsUpdateParams.java Adds skill and sandbox fields.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/SessionOpenOptions.java Adds skill and sandbox fields.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/SessionManagedPermissions.java Opens managed policy values.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/SessionInstalledPlugin.java Adds plugin provenance.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/SandboxConfigSource.java Adds sandbox-source enum.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/SandboxConfig.java Refreshes generated documentation.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/PermissionPathsConfig.java Documents trusted discovery roots.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/ModelWarningText.java Adds model warning text.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/ModelMessage.java Adds model notices.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/Model.java Adds warning and notice fields.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/InstalledPluginInfo.java Adds live-plugin provenance.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/InstalledPlugin.java Adds live-plugin provenance.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/GitHubTokenAcquireResultToken.java Adds token result variant.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/GitHubTokenAcquireResultCancelled.java Adds cancellation variant.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/GitHubTokenAcquireResult.java Adds token result hierarchy.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/GitHubTokenAcquireRequest.java Adds token callback request.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/GitHubTokenAcquireReason.java Adds acquisition reasons.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/ConnectParams.java Adds client identity.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/ConnectClientInfo.java Defines client identity.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/AuthInfoType.java Adds token-provider auth kind.
java/sdk/src/generated/java/com/github/copilot/generated/rpc/AuthInfo.java Registers token-provider auth.
java/sdk/src/generated/java/com/github/copilot/generated/ModelCallFinishedOutcome.java Defines model-call outcomes.
java/sdk/src/generated/java/com/github/copilot/generated/ModelCallFinishedEvent.java Adds model-call completion event.
java/sdk/src/generated/java/com/github/copilot/generated/ManagedSettingsEnforcedEscalation.java Adds MCP escalation kind.
java/sdk/src/generated/java/com/github/copilot/generated/AssistantUsageEvent.java Adds output TTFT.
java/sdk/src/generated/java/com/github/copilot/generated/AssistantMessageReasoningBlocks.java Adds opaque reasoning blocks.
java/sdk/src/generated/java/com/github/copilot/generated/AssistantMessageEvent.java Carries reasoning blocks.
java/scripts/codegen/package.json Updates Java codegen dependency.
java/scripts/codegen/package-lock.json Locks Java codegen runtime.
java/pom.xml Updates reference implementation version.
go/zsession_events.go Re-exports new event types.
go/types.go Opens managed policy values.
go/rpc/zsession_events.go Regenerates event models.
go/rpc/zsession_encoding.go Dispatches the new event.
go/rpc/zrpc.go Regenerates RPC models and handlers.
go/rpc/zrpc_encoding.go Adds union encoding support.
go/internal/e2e/rpc_tasks_and_handlers_e2e_test.go Restores per-test configuration.
go/client_test.go Tests future policy values.
dotnet/test/Unit/ClientSessionLifetimeTests.cs Tests open policy strings.
dotnet/test/E2E/RpcSessionStateE2ETests.cs Adapts set-credentials type.
dotnet/src/Types.cs Opens managed policy values.
dotnet/src/Generated/SessionEvents.cs Regenerates event models.
dotnet/src/Generated/Rpc.cs Regenerates typed RPC models.

Review details

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Files not reviewed (8)
  • go/rpc/zrpc_encoding.go: Generated file
  • go/rpc/zsession_encoding.go: Generated file
  • go/rpc/zsession_events.go: Generated file
  • go/zsession_events.go: Generated file
  • java/scripts/codegen/package-lock.json: Generated file
  • nodejs/package-lock.json: Generated file
  • nodejs/samples/package-lock.json: Generated file
  • test/harness/package-lock.json: Generated file
  • Files reviewed: 28/81 changed files
  • Comments generated: 3
  • Review effort level: Balanced

Comment thread go/types.go
Comment thread dotnet/src/Types.cs
ellismg and others added 7 commits August 25, 2026 21:55
Document allow-auto-only, forward-compatible values, and most-restrictive policy composition across Go, Java, and .NET.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: e98a14a6-7ad4-4cb6-b808-e56547701c19
Wait for the bounded stderr reader to drain before failing pending JSON-RPC requests so startup diagnostics are preserved.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3f5c3c30-0cf7-4b9a-9a3b-2b01ca073015
Serialize the MCP stdio server working directory using the protocol's cwd field and cover the wire shape with a focused regression test.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3f5c3c30-0cf7-4b9a-9a3b-2b01ca073015
Keep the notification-bearing replay conversation authoritative instead of allowing a duplicate partial prefix to consume the Java selector's parent-agent prompt.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Generate SettableAuthInfo as a typed union instead of falling back to serde_json::Value, and exercise the typed API in the auth RPC E2E test.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 89c8c44a-555c-4c32-beb7-bbfd4bf13d25
Default generated optional connect fields while explicitly setting the values owned by the SDK, and verify clientInfo remains omitted from the wire request.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 89c8c44a-555c-4c32-beb7-bbfd4bf13d25
Exercise the canonical disable bypass-permissions value alongside allow-auto-only and future fail-closed strings in Node, Python, and Rust.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 89c8c44a-555c-4c32-beb7-bbfd4bf13d25
Comment thread python/test_jsonrpc.py Fixed
@github-actions

This comment has been minimized.

Yield to the event loop before reading the scheduled future exception so the test remains deterministic without a no-effect await statement.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: e98a14a6-7ad4-4cb6-b808-e56547701c19
@github-actions

Copy link
Copy Markdown
Contributor Author

Cross-SDK Consistency Review ✅

This PR (dependency update to @github/copilot 1.0.81-10 with codegen re-run) maintains full cross-SDK consistency.

The key hand-written change — refactoring DisableBypassPermissionsMode from a closed enum to an open string type with well-known constants — is applied uniformly across all six SDKs:

SDK Type Constants
Node.js const DisableBypassPermissionsModes (object) Disable, AllowAutoOnly
Python class DisableBypassPermissionsModes DISABLE, ALLOW_AUTO_ONLY
Go type DisableBypassPermissionsMode string + package consts DisableBypassPermissionsModeDisable, DisableBypassPermissionsModeAllowAutoOnly
.NET static class DisableBypassPermissionsModes Disable, AllowAutoOnly
Java final class DisableBypassPermissionsModes DISABLE, ALLOW_AUTO_ONLY
Rust struct DisableBypassPermissionsModes (const impl) DISABLE, ALLOW_AUTO_ONLY

The ManagedSettingsPermissions.disableBypassPermissionsMode field type was also widened from the enum to string (or language equivalent) consistently across all SDKs.

No consistency gaps found.

Generated by SDK Consistency Review Agent for #2401 · sonnet46 28.1 AIC · ⌖ 5.44 AIC · ⊞ 6.6K ·

@roji roji left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some additional goodness on top, LGTM!

@roji
roji added this pull request to the merge queue Aug 26, 2026
Merged via the queue into main with commit ed1c2ea Aug 26, 2026
74 checks passed
@roji
roji deleted the update-copilot-1.0.81-10 branch August 26, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants